<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:xi="http://www.w3.org/2001/XInclude"
      xmlns:py="http://genshi.edgewall.org/">
    <xi:include href="../master.html" />

<head />

<body>
    ${ET(tg.back_widget())}
    <h3>${register.title}</h3>

    <p py:if="difference > 0">
        <p>Warning!</p>
        <p>Payment records was changed.</p>
        <p>
            <span>In daily register kepts money</span> <strong>less</strong>
            <span>than in payment records on</span> ${difference} <span>rub.</span>
        </p>
    </p>
    <p py:if="difference &lt; 0">
        <p>Warning!</p>
        <p>Payment records was changed.</p>
        <p>
            <span>In daily register kepts money</span> <strong>more</strong>
            <span>than in payment records on</span> ${-difference} <span>rub.</span>
        </p>
    </p>

    <table>
        <tr py:for="obj in pay_records">
            <td><a href="/PaymentRecord/${obj.id}/">${obj.title}</a></td>
        </tr>
    </table>

    <form action="${action}" method="POST" onsubmit="if(confirm('Are you sure you want to recharge?')){return true;}return false;">
        <input type="hidden" name="register_id" value="${register.id}" />
        <input type="hidden" name="_amount" value="${new_amount}" />
        <input type="submit" value="${_('Recharge')}" />
    </form>

</body>
</html>
